package com.kevin.springcloud;

import com.kevin.myrule.KevinRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
/**
 * 在微服务启用的时候就能加载自定义的负载均衡算法
 */
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = KevinRule.class)
public class DeptConsumer_80 {

    public static void main(String[] args) {

        SpringApplication.run(DeptConsumer_80.class, args);
    }
}
